<template>
	<view class="index">
		<image src="../../../static/image/banner-1@2x.png" mode="widthFix"></image>
		<view class="content">
			<image src="../../../static/image/活动推广@2x.png" mode="widthFix" @click="extensionFun"></image>
			<image src="../../../static/image/发券推广@2x.png" mode="widthFix" @click="couponFun"></image>
			<image src="../../../static/image/券码核销@2x.png" mode="widthFix" @click="WriteOffFun"></image>
		</view>


	</view>

</template>
<script>

</script>
<script setup>
	const {
		mourn,
		theme
	} = useStore()
	const {
		Theme,
		onShow
	} = useTheme()
	const {
		proxy
	} = getCurrentInstance()
	onLoad(options => {
		if (!proxy.sjuBase.isNull(options.openid)) {
			proxy.sjuLogin.saveValue("xndzOpenid", options.openid);
		}
		if (proxy.sjuBase.isNull(proxy.sjuLogin.getValue('xndz_mobile'))) {
			proxy.sjuNav.navigateTo('/intake/login')
		}

	})
	const extensionFun = () => {
		proxy.sjuNav.navigateTo('/my/extension')
	}
	const couponFun = () => {
		proxy.sjuNav.navigateTo('/my/couponModule')
	}
	const WriteOffFun = () => {
		proxy.sjuNav.navigateTo('/my/WriteOff')
	}
</script>

<style lang="scss">
	.index {
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;

		image {
			width: 100%;
		}

		.content {
			width: 90%;
			margin: 0 5%;

			image {
				margin-top: 20px;
			}
		}
	}
</style>